package com.stottlerhenke.simbionic.engine.core;
import java.util.*;
import com.stottlerhenke.simbionic.api.*;

/**
 * <p>Title: SB_Action</p>
 * <p>Description: Defines the behavior of action objects. Calls actions on the system interface.</p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: Stottler Henke </p>
 * @author not attributable
 * @version 1.0
 */

public class SB_Action extends SB_Method {

  public SB_Action() {
  }

  public SB_Action(String name, int id){
    super(name, id);
    _params = new SB_ParamList();
  }

  public SB_Action(String name, int id, SB_ParamList params)
  {
    super(name, id);
    _params = params;
  }

  public void doAction(long id, ArrayList params) throws SB_Exception
  {
  	GetInterface().doAction(GetId(), id, params);
  }
  
  public static boolean IsReserved(int act)
  {
    return (act < EInternalActions.ID_ACT_LAST_RESERVED.getState());
  }
}